package com.yanbing;

import com.spring.AnnotationConfigApplicationContext;
import com.spring.ApplicationContext;
import com.yanbing.service.OrderService;



/**
 * @author yanbing
 * @version 1.0
 * @date 2021/9/4 21:10
 */
public class SpringTest {

    public static void main(String[] args) {
        ApplicationContext context=new AnnotationConfigApplicationContext(AppConfig.class);
        OrderService bean = (OrderService) context.getBean("orderService");
        bean.order();

    }

}
